<template>
  <h1>page1</h1>
  <el-row class="mb-4">
    <el-button @click="excuteApi()">Default</el-button>
    <el-button type="primary">Primary</el-button>
    <el-button type="success">Success</el-button>
    <el-button type="info">Info</el-button>
    <el-button type="warning">Warning</el-button>
    <el-button type="danger">Danger</el-button>
  </el-row>
</template>

<script>
import axios from 'axios'
export default {
    name:'FirstMenu',
    methods: {
      excuteApi: function() {
        axios.get('/demo/test/getList'
                ).then(res => {//用function会获取不到vue data值
                    alert(JSON.stringify(res.data.data))
                }).catch(function (error) {
                    console.log(error)
                })
      }
    }
}
</script>

<style>

</style>